<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<div class="bjui-pageHeader">
       <form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/management/product/pageList.do" method="post">
        <input type="hidden" name="pageSize" value="${vo.pageSize}">
        <input type="hidden" name="pageCurrent" value="${vo.pageCurrent}">
        <input type="hidden" name="orderField" value="${vo.orderField}">
        <input type="hidden" name="orderDirection" value="${vo.orderDirection}">    
       <div class="bjui-searchBar">
            <label>产品编码：</label><input type="text" name="productCode" value="${param.productCode}" class="form-control" size="10" />
            <label>产品名称：</label><input type="text" name="productName" value="${param.productName}" class="form-control" size="10" />
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">功能操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                    	<li><a href="${ctx}/management/product/initAdd.do" data-toggle="dialog" data-width="500" data-height="350" data-id="dialog-mask" data-mask="true"><i class="fa fa-plus"></i> 新增数据</a></li>
                   		<li class="divider"></li>
                        <li><a href="${ctx}/management/product/deleteAll.do" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="delids" data-group="ids"><i class="fa fa-remove"></i>删除选中</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </form>
    
      <button type="button" class="btn btn-default" data-toggle="dialog" data-width="500" data-height="350" data-id="dialog-mask" data-mask="true" data-url="${ctx}/management/product/initAdd.do" data-title="添加参数">添加</button>
</div>

<div class="bjui-pageContent">
    <table data-width="100%"  class="table table-bordered table-hover table-striped table-top" data-toggle="tablefixed">
    	<thead>
    	<tr>
    	   <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
    		<th>产品名称</th>
    		<th>产品编码</th>
    		<th>投资期限(月)</th>
    		<th>年化收益</th>
    		<th>起购金额(大于)</th>
    		<th>结束金额(小于等于)</th>
    		<th>操作</th>
    	</tr>
    	</thead>
    	<tbody>
    	<c:forEach var="list" items="${objList}">
    	<tr>
    		<td><input type="checkbox" name="ids" data-toggle="icheck" value="${list.intID}"></td>
    		<td>${list.productName}</td>
    		<td>${list.productCode}</td>
    		<td>${list.periodDay}</td>
    		<td>${list.yearRate}%</td>
    		<td>${list.startFinance}</td>
    		<td>${list.endFinance}</td>
    		<td>
    			<a href="${ctx}/management/product/${list.intID}/initEdit.do" class="btn btn-default" data-toggle="dialog" data-width="500" data-height="350" data-id="dialog-mask" data-mask="true">编辑</a>
    			<a href="${ctx}/management/product/${list.intID}/delete.do" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除吗？">删除</a>
    		</td>
    	</tr>
    	</c:forEach>
    	</tbody>
    </table>
</div>

<%@ include file="/commons/pagination.jsp" %>

